package com.chapter6.lianxi.demo2;

public class test {
    public static void main(String[] args) {
        Army a = new Army(5);
        a.addWeapon(new Flighter());
        a.addWeapon(new Flighter());
        a.addWeapon(new Tank());
        a.addWeapon(new MissileTurret());
        a.attackAll();
    }
}
